package com.kevin.springboot.demos.utils;

import java.util.Date;

/**
 * 全局唯一id
 * @author: wangyong
 * @date: 2019/8/18 12:04
 */
public class SnowflakeIdUtil {


	public static void main(String[] args) {
		String prefix = DateUtil.getDateTimeStr(new Date(), DateUtil.YYYYMMDDHHMMSS);
		String orderId = prefix + "-" + String.format("%1$010d", 1);
		System.out.println(orderId);


	}
}
